<?php
/**
 * Created by PhpStorm.
 * User: Edward
 * Date: 2019/6/4
 * Time: 15:41
 */

namespace app\Validate;

class UpdateOrDeleteGroupValidate extends BaseValidate {
    protected $rule = [
        'id' => 'require|isPositiveInteger',
        'group_name' =>'require|min:1|max:10'
    ];
    protected $message = [
        'id' => 'ID必须是整数',
        'group_name' => '商家分组必添，最小值是1，最大值是10',
    ];
}